package com.hqyj.controller;

import com.hqyj.pojo.R;
import com.hqyj.service.OrderRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderInfoController {

    @Autowired
    OrderRedisService orderRedisService;

    @PostMapping("/order")
    public R order(Integer shopId,Integer num){

        return orderRedisService.orderCreate(shopId,num);
    }
}
